<?php
class Zend_Controller_Action_Helper_Order extends Zend_Controller_Action_Helper_Abstract{
	
	public function getTotal($orderidArray, $rate = 1){
		
		$order=new COrder();
		
		$orderString=join(',',$orderidArray);
		
		$orderArray=$order->getAllOrders(0,0,0,"orderid IN($orderString)");
		
		$total=0;
		
		foreach ($orderArray as $value){
			
			$total+=$value['money'];
			
		}
		
		$total=round($total,2);
		return $total;
		
	}
	
}
